package com.marsrover.state;

import com.marsrover.Rover;
import com.marsrover.RoverManager;

public class ReadyToBuildRover extends RoverManagerState {

	@Override
	public Rover buildRover(RoverManager roverManager, String initLocationInfo) {
		Rover rover = createExecutor(roverManager).buildRover(initLocationInfo);
		roverManager.setState(BUILD_SUCCESS);
		return rover;
	}

	@Override
	public void sendCommands(RoverManager roverManager, String commands) {
		throw new UnsupportedOperationException();
	}

	@Override
	public void launchRover(RoverManager roverManager) {
		throw new UnsupportedOperationException();
	}
}
